/*
 *Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,此处任何更改都可能导致被代码生成器覆盖
 *所有业务编写全部应在Partial文件夹下PurchaseOrderModelService与IPurchaseOrderModelService中编写
 */
using VOL.demo.IRepositories;
using VOL.demo.IServices;
using VOL.Core.BaseProvider;
using VOL.Core.Extensions.AutofacManager;
using VOL.Entity.DomainModels;
using Microsoft.Extensions.DependencyInjection;

namespace VOL.demo.Services
{
    public partial class PurchaseOrderModelService : ServiceBase<PurchaseOrderModel, IPurchaseOrderModelRepository>
    , IPurchaseOrderModelService, IDependency
    {
        private readonly IPurchaseOrderModelRepository _repository;

        [ActivatorUtilitiesConstructor]
        public PurchaseOrderModelService(IPurchaseOrderModelRepository dbRepository)
        : base(dbRepository)
        {
            _repository = dbRepository;
            Init(dbRepository);
        }

        public static IPurchaseOrderModelService Instance
        {
            get { return AutofacContainerModule.GetService<IPurchaseOrderModelService>(); }
        }
    }
}
